package com.atguigu.srb.core.controller.api;


import com.atguigu.srb.core.service.LendItemService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * <p>
 * 标的出借记录表 前端控制器
 * </p>
 *
 * @author Atguigu
 * @since 2024-04-15
 */
@RestController
@RequestMapping("/api/core/lendItem")
public class ApiLendItemController {
    //INVEST_NOTIFY_URL = "http://192.168.1.110/api/core/lendItem/notify";
    @Resource
    private LendItemService lendItemService;
    @ApiOperation("hfb访问的 投资结果的回调接口")
    @PostMapping("notify")
    public String investNotify(@RequestParam Map<String,Object > map){
        String result = lendItemService.investNotify(map);
        return result;
    }
}

